import request from '@/utils/request';

// 展示列表
export function getList(data) {
  return request({
    url: '/zd-account/list',
    method: 'post',
    data
  });
}
// 新增
export function addList(data) {
  return request({
    url: '/zd-account/add',
    method: 'post',
    data
  });
}
// 编辑
export function update(data) {
  return request({
    url: '/zd-account/update',
    method: 'post',
    data
  });
}
// 删除
export function remove(data) {
  return request({
    url: '/zd-account/delete',
    method: 'get',
    params: data
  });
}
// 线索日志列表
export function clueList(data) {
  return request({
    url: '/ZdClue/list',
    method: 'post',
    data: data
  });
}
// 授信日志列表
export function authList(data) {
  return request({
    url: '/modules/auth/clue/list',
    method: 'post',
    data: data
  });
}
// 线索分析
export function getbyId(data) {
  return request({
    url: '/ZdClue/getbyId',
    method: 'get',
    params: data
  });
}
// 修改并提交新线索分析
export function updateZdClubLog(data) {
  return request({
    url: '/ZdClue/updateZdClubLog',
    method: 'post',
    data
  });
}
// 查询广告计划
export function advertisingPlan(data) {
  return request({
    url: '/zd/advertisingPlan/list',
    method: 'post',
    data: data
  });
}
// 新增广告计划
export function advertisingAdd(data) {
  return request({
    url: '/zd/advertisingPlan/add',
    method: 'post',
    data: data
  });
}
// 编辑广告计划
export function advertisingUpdate(data) {
  return request({
    url: '/zd/advertisingPlan/update',
    method: 'post',
    data: data
  });
}
// 删除广告计划
export function advertisingDelete(data) {
  return request({
    url: '/zd/advertisingPlan/delete',
    method: 'post',
    data: data
  });
}
// 过滤器配置
export function filterConfiguration(data) {
  return request({
    url: '/zd/advertisingPlan/filterConfiguration',
    method: 'post',
    data: data
  });
}
// 保险产品列表
export function InsuranceList(data) {
  return request({
    url: '/zd/insuranceProducts/list',
    method: 'post',
    data: data
  });
}
// 新增保险产品
export function InsuranceAdd(data) {
  return request({
    url: '/zd/insuranceProducts/add',
    method: 'post',
    data: data
  });
}
// 删除保险产品
export function deleteBx(data) {
  return request({
    url: '/zd/insuranceProducts/delete',
    method: 'post',
    data: data
  });
}
// 修改保险产品
export function InsuranceUpdate(data) {
  return request({
    url: '/zd/insuranceProducts/update',
    method: 'post',
    data: data
  });
}
// 查询全国城市
export function findAllCity(data) {
  return request({
    url: '/zd/nationalCity/list',
    method: 'post',
    data: data
  });
}
// 查询开通城市
export function findCitys(data) {
  return request({
    url: '/zd/cityConfigure/list',
    method: 'post',
    data: data
  });
}
// 新增城市
export function addPlanCity(data) {
  return request({
    url: '/zd/cityConfigure/add',
    method: 'post',
    data: data
  });
}
// 删除城市
export function delPlanCity(data) {
  return request({
    url: '/zd/cityConfigure/delete',
    method: 'get',
    params: data
  });
}
// 查询保险计划
export function insurancePlanList(data) {
  return request({
    url: '/zd/insurancePlan/list',
    method: 'post',
    data: data
  });
}
// 新增保险计划
export function insurancePlanAdd(data) {
  return request({
    url: '/zd/insurancePlan/add',
    method: 'post',
    data: data
  });
}
// 编辑保险计划
export function insurancePlanUpdate(data) {
  return request({
    url: '/zd/insurancePlan/update',
    method: 'post',
    data: data
  });
}
// 删除保险计划
export function insurancePlanDelete(data) {
  return request({
    url: '/zd/insurancePlan/delete',
    method: 'post',
    data: data
  });
}
// 保险计划过滤器配置
export function insurancePlanConfiguration(data) {
  return request({
    url: '/zd/insurancePlan/filterConfiguration',
    method: 'post',
    data: data
  });
}
// 今日进件数统计
export function getsumInto(data) {
  return request({
    url: '/ZdClue/getsumInto',
    method: 'get',
    params: data
  });
}
// 历史进件数统计
export function getHistorySumInto(data) {
  return request({
    url: '/ZdClue/getHistorySumInto',
    method: 'post',
    data: data
  });
}
// 查看权重配比
export function weightList(data) {
  return request({
    url: '/zd/weight/list',
    method: 'post',
    data: data
  });
}
// 修改权重配比
export function weightListUpdate(data) {
  return request({
    url: '/zd/weight/update',
    method: 'post',
    data: data
  });
}
// 添加协议
export function addBatch(data) {
  return request({
    url: '/zd-account-protocol/batch-add',
    method: 'post',
    data: data
  });
}
// 展示签署协议
export function showXy(data) {
  return request({
    url: '/zd-user-protocol/list',
    method: 'get',
    params: data
  });
}
// 展示协议内容
export function showXyContent(data) {
  return request({
    url: '/zd-user-protocol/getById',
    method: 'get',
    params: data
  });
}
// 查看协议内容
export function findList(data) {
  return request({
    url: '/zd-account-protocol/list',
    method: 'get',
    params: data
  });
}
// 城市进件数统计
export function getCityCount(data) {
  return request({
    url: '/ZdClue/getCityCount',
    method: 'post',
    data: data
  });
}
// 机构进件数统计
export function getinstitutionalSumInto(data) {
  return request({
    url: '/ZdClue/getinstitutionalSumInto',
    method: 'post',
    data: data
  });
}
// 展示强推列表
export function getZdPlan(data) {
  return request({
    url: '/zd/automatic/list',
    method: 'post',
    data: data
  });
}
// 获取机构信息
export function getMechanism(data) {
  return request({
    url: '/zd/automatic/mechanismList',
    method: 'post',
    data: data
  });
}
// 获取计划信息
export function planList(data) {
  return request({
    url: '/zd/automatic/planList',
    method: 'post',
    data: data
  });
}
// 新增强推计划
export function addPromotioPlan(data) {
  return request({
    url: '/zd/automatic/add',
    method: 'post',
    data: data
  });
}
// 计划开关
export function openOrClose(data) {
  return request({
    url: '/zd/automatic/openOrClose',
    method: 'post',
    data: data
  });
}
// 编辑强推计划
export function updatePromotioPlan(data) {
  return request({
    url: '/zd/automatic/update',
    method: 'post',
    data: data
  });
}
// 过滤器配置
export function channelConfigurationPlan(data) {
  return request({
    url: '/zd/automatic/channelConfiguration',
    method: 'post',
    data: data
  });
}
// 城市配置
export function updateCity(data) {
  return request({
    url: '/zd/automatic/updateCity',
    method: 'post',
    data: data
  });
}
export function deletePlan(data) {
  return request({
    url: '/zd/automatic/delete',
    method: 'post',
    data: data
  });
}
export function getPlan(data) {
  return request({
    url: '/zd/push/getPlan',
    method: 'post',
    data: data
  });
}
// 增加保底计划
export function minimumGuaranteePlan(data) {
  return request({
    url: '/zd/push/minimumGuaranteePlan',
    method: 'post',
    data: data
  });
}
// 查询推送线索
export function pushLeadsList(data) {
  return request({
    url: '/zd/push/pushLeadsList',
    method: 'post',
    data: data
  });
}
// 查询线索分析
export function getClueByUserId(data) {
  return request({
    url: '/zd/push/getClueByUserId',
    method: 'get',
    params: data
  });
}
// 城市进件统计汇总
export function selectCityCountSummary(data) {
  return request({
    url: '/ZdClue/selectCityCountSummary',
    method: 'post',
    data: data
  });
}
// 渠道来源下拉框数据
export function getChannelSourceBySource(data) {
  return request({
    url: '/ZdClue/getChannelSourceBySource',
    method: 'post',
    data: data
  });
}
// 高质量渠道来源下拉框数据
export function getChannelSourceBySource1(data) {
  return request({
    url: '/drop-drow-list/get-list',
    method: 'get',
    params: data
  });
}
// 用户行为日志查询
export function getUserActionLog(data) {
  return request({
    url: '/ZdClue/getUserActionLog',
    method: 'get',
    params: data
  });
}
// 非时段用户线索
export function nonTimePeriodUserClues(data) {
  return request({
    url: '/ZdClue/nonTimePeriodUserClues',
    method: 'post',
    data: data
  });
}
// 查看签署协议
export function insition(data) {
  return request({
    url: '/insition/xy',
    method: 'get',
    params: data
  });
}
// 手推发送线索
export function pushTOSendClues(data) {
  return request({
    url: '/ZdClue/pushTOSendClues',
    method: 'post',
    data: data
  });
}
// 广告计划启用状态
export function updateAEnableStatus(data) {
  return request({
    url: '/zd/advertisingPlan/updateEnableStatus',
    method: 'post',
    data: data
  });
}
// 保险计划启用状态
export function updateIEnableStatus(data) {
  return request({
    url: '/zd/insurancePlan/updateEnableStatus',
    method: 'post',
    data: data
  });
}
// 非时段用户线索导出
export function nonTimePeriodUserCluesExport(data) {
  return request({
    url: '/ZdClue/nonTimePeriodUserCluesExport',
    method: 'post',
    data: data
  });
}
// 非用户时段发送线索详情
export function pushTOSendCluesDetails(data) {
  return request({
    url: '/ZdClue/pushTOSendCluesDetails',
    method: 'post',
    data: data
  });
}
// 高质量用户线索列表
export function highQualityUsers(data) {
  return request({
    url: '/ZdClue/highQualityUsers',
    method: 'post',
    data: data
  });
}
// 高质量用户线索详情
export function highQualityUsersDetails(data) {
  return request({
    url: '/ZdClue/highQualityUsersDetails',
    method: 'post',
    data: data
  });
}
// 高质量用户线索推送
export function highQualityUsersPush(data) {
  return request({
    url: '/ZdClue/highQualityUsersPush',
    method: 'post',
    data: data
  });
}
// 城市覆盖图
export function getCityMap(data) {
  return request({
    url: '/ZdClue/getCityMap',
    method: 'get',
    params: data
  });
}
// 广告计划过滤器渠道配置
export function channelConfiguration(data) {
  return request({
    url: '/zd/advertisingPlan/channelConfiguration',
    method: 'post',
    data: data
  });
}
// 保险计划过滤器渠道配置
export function insChannelConfiguration(data) {
  return request({
    url: '/zd/insurancePlan/channelConfiguration',
    method: 'post',
    data: data
  });
}
// 批量修改线索时间
export function updateAll(data) {
  return request({
    url: '/zd/automatic/updateAll',
    method: 'post',
    data: data
  });
}
// 根据省一键屏蔽城市
export function shiledOnce(data) {
  return request({
    url: '/zd/cityConfigure/shieldBatch',
    method: 'post',
    data: data
  });
}
export function getCityCountByCityName(cityName) {
  return request({
    url: '/zd/cityConfigure/getCityCountByLimit',
    method: 'get',
    params: {
      cityName: cityName
    }
  });
}
export function allUserClues(data) {
  return request({
    url: '/ZdClue/allUsersClue',
    method: 'post',
    data: data
  });
}
// 线索分析
export function allGetById(data) {
  return request({
    url: '/ZdClue/allGetById',
    method: 'get',
    params: data
  });
}
// 广告风控
// 广告计划列表
export function getadRiskList(data) {
  return request({
    url: '/adPlan/list',
    method: 'get',
    params: data
  });
}
// 更改广告计划状态
export function changeAdPlan(data) {
  return request({
    url: '/adPlan/change',
    method: 'get',
    params: data
  });
}
// 删除广告计划
export function deleteAdPlan(data) {
  return request({
    url: '/adPlan/delete',
    method: 'get',
    params: data
  });
}
// 删除广告计划城市
export function deleteAdPlanCity(data) {
  return request({
    url: '/adPlan/deletePlanCity',
    method: 'get',
    params: data
  });
}
// 获取广告计划过滤器
export function getAdFilter(data) {
  return request({
    url: '/adPlan/getAdFilter',
    method: 'get',
    params: data
  });
}
// 获取广告计划没有操作的城市（上部分）
export function getAdListNoOpt(data) {
  return request({
    url: '/adPlan/listNoOpt',
    method: 'get',
    params: data
  });
}
// 获取广告计划操作的城市（下部分部分）
export function getAdListOpt(data) {
  return request({
    url: '/adPlan/listOpt',
    method: 'get',
    params: data
  });
}
// 消耗统计
export function getPlanStatistics(data) {
  return request({
    url: '/adPlan/planStatistics',
    method: 'get',
    params: data
  });
}
// 新增广告计划
export function addAdPlan(data) {
  return request({
    url: '/adPlan/add',
    method: 'post',
    data: data
  });
}
// 新增广告计划城市
export function addAdPlanCity(data) {
  return request({
    url: '/adPlan/addPlanCity',
    method: 'post',
    data: data
  });
}
// 新增/编辑广告计划过滤器
export function saveUpdateFilter(data) {
  return request({
    url: '/adPlan/saveUpdateFilter',
    method: 'post',
    data: data
  });
}
// 编辑广告计划
export function updateAdPlan(data) {
  return request({
    url: '/adPlan/update',
    method: 'post',
    data: data
  });
}
// 风控线索列表
export function getRiskClueList(data) {
  return request({
    url: '/adPlan/riskClueList',
    method: 'get',
    params: data
  });
}
